package com.ruoyi.base.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.base.mapper.BaseMainAirportContactMapper;
import com.ruoyi.base.domain.BaseMainAirportContact;
import com.ruoyi.base.service.IBaseMainAirportContactService;

/**
 * 主机场联络;Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-23
 */
@Service
public class BaseMainAirportContactServiceImpl implements IBaseMainAirportContactService 
{
    @Autowired
    private BaseMainAirportContactMapper baseMainAirportContactMapper;

    /**
     * 查询主机场联络;
     * 
     * @param maId 主机场ID;主键
     * @return 主机场联络;
     */
    @Override
    public List<BaseMainAirportContact> selectBaseMainAirportContactByMaId(String maId)
    {
        return baseMainAirportContactMapper.selectBaseMainAirportContactByMaId(maId);
    }

    /**
     * 查询主机场联络;列表
     * 
     * @param baseMainAirportContact 主机场联络;
     * @return 主机场联络;
     */
    @Override
    public List<BaseMainAirportContact> selectBaseMainAirportContactList(BaseMainAirportContact baseMainAirportContact)
    {
        return baseMainAirportContactMapper.selectBaseMainAirportContactList(baseMainAirportContact);
    }

    /**
     * 新增主机场联络;
     * 
     * @param baseMainAirportContact 主机场联络;
     * @return 结果
     */
    @Override
    public int insertBaseMainAirportContact(BaseMainAirportContact baseMainAirportContact)
    {
        return baseMainAirportContactMapper.insertBaseMainAirportContact(baseMainAirportContact);
    }

    /**
     * 修改主机场联络;
     * 
     * @param baseMainAirportContact 主机场联络;
     * @return 结果
     */
    @Override
    public int updateBaseMainAirportContact(BaseMainAirportContact baseMainAirportContact)
    {
        return baseMainAirportContactMapper.updateBaseMainAirportContact(baseMainAirportContact);
    }

    /**
     * 批量删除主机场联络;
     * 
     * @param IDs 需要删除的主机场联络;主键
     * @return 结果
     */
    @Override
    public int deleteBaseMainAirportContactByIDs(String[] IDs)
    {
        return baseMainAirportContactMapper.deleteBaseMainAirportContactByIDs(IDs);
    }

    /**
     * 删除主机场联络;信息
     * 
     * @param ID 主机场联络;主键
     * @return 结果
     */
    @Override
    public int deleteBaseMainAirportContactByID(String ID)
    {
        return baseMainAirportContactMapper.deleteBaseMainAirportContactByID(ID);
    }
}
